﻿using System.Collections.Generic;
using kmer.Web;

namespace com.kmer {
	/// <summary>
	/// 描述微信首页
	/// </summary>
	public class WNewProductList {
		const string DATA_FILE = "~/App_Data/WNewProductList.json";
		public int Version { get; set; }
		public List<ProductItem> List { get; set; }

		public class ProductItem {
			public string Title { get; set; }
			public string Link { get; set; }
			public string PicUrl { get; set; }
		}

		public static WNewProductList Load() {
			var str = myCache.GetFile(DATA_FILE, DATA_FILE);
			return Newtonsoft.Json.JsonConvert.DeserializeObject<WNewProductList>(str);
		}
	}
}
